import {
	WxApi
} from '../api/wx';

import wx from 'weixin-js-sdk'
import {
	FileApi
} from '../api/file';
import {
	base64ToFile,
	extractFileType,
} from './util';

export const isWechat = () => {
	var ua = window.navigator.userAgent.toLowerCase();
	if (ua.match(/micromessenger/i) == 'micromessenger') {
		// console.log('是微信客户端')
		return true;

	} else {
		// console.log('不是微信客户端')
		return false;
	}
}